import request from '@/utils/request'

// 查询K项指标明细列表
export function listKmetricDetails(query) {
  return request({
    url: '/wms/KmetricDetails/list',
    method: 'get',
    params: query
  })
}

// 查询K项指标明细详细
export function getKmetricDetails(id) {
  return request({
    url: '/wms/KmetricDetails/' + id,
    method: 'get'
  })
}

// 新增K项指标明细
export function addKmetricDetails(data) {
  return request({
    url: '/wms/KmetricDetails',
    method: 'post',
    data: data
  })
}

// 修改K项指标明细
export function updateKmetricDetails(data) {
  return request({
    url: '/wms/KmetricDetails',
    method: 'put',
    data: data
  })
}

// 删除K项指标明细
export function delKmetricDetails(id) {
  return request({
    url: '/wms/KmetricDetails/' + id,
    method: 'delete'
  })
}
